package com.basker.pisces.domain.value.meta;

import com.basker.pisces.core.Element;
import com.basker.pisces.core.meta.annotation.DataField;

public class StatusOption extends Element {

    @DataField
    private Integer statusValue;

    public StatusOption() {

    }

    public StatusOption(Integer statusValue, String displayName) {
        this.statusValue = statusValue;
        this.setDisplayName(displayName);
    }

    public Integer getStatusValue() {
        return statusValue;
    }

    public void setStatusValue(Integer statusValue) {
        this.statusValue = statusValue;
    }

    @Override
    public String toString() {
        if (this.statusValue != null) {
            return "[" + this.statusValue + "]-" + this.getDisplayName();
        }

        return "";
    }
}